<template>
 <div>
    <el-table
    :data="adminList"
    stripe
    :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
    row-key="id"
    style="width: 100%">
    <el-table-column
        prop="id"
        label="编号"
        width="80"
        align="center">
    </el-table-column>
    <el-table-column
        prop="uid"
        label="管理员编号"
        width="80"
        align="center">
    </el-table-column>
    <el-table-column
        prop="roleid"
        label="角色"">
    </el-table-column>


    
    <el-table-column
        prop="username"
        label="账号">
    </el-table-column>
    <el-table-column
        prop="status"
        label="是否启用">
    </el-table-column>
    <el-table-column
        label="操作">
        <template>
         
            <el-button type="primary" icon="el-icon-edit" circle ></el-button>
            <el-button type="danger" icon="el-icon-delete" circle ></el-button>
        </template>
    </el-table-column>
</el-table>
<el-pagination
  background
  layout="prev, pager, next"
  :total="10">
</el-pagination>
 </div>
</template>

<script>
    import {mapState,mapActions} from 'vuex'
export default {
 data(){
 return{
     adminData:{
         page:1,
         size:5
     }
 }
 },
 created(){
     this.getAdminListActions(this.adminData)
 },
 computed:{
    ...mapState({
        adminList:state=>state.admin.adminList
    })
 },
 methods:{
     ...mapActions("admin",['getAdminListActions',])
 },
 components:{

 }
}

</script>
<style scoped>
</style>